package com.niiwoo.civet.scheduler.trigger;

import com.alibaba.dubbo.config.annotation.Reference;
import com.niiwoo.civet.account.service.trade.WithholdDubboService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 代扣补单Job
 * Created by xiaoyingping on 2018/4/26.
 */
@Component
@Slf4j
public class WithholdJobTrigger {

    @Reference(version = "1.0.0")
    private WithholdDubboService withholdDubboService;

    /**
     * 查询懒猫代扣结果
     */
    @Scheduled(cron = "${withhold.query_lanmao_withhold_result}")
    public void queryLanMaoWithholdResultJob(){
        withholdDubboService.queryLanMaoWithholdResultJob();
    }

}
